import request from "@/utils/request"

export const showApi = () => {
    return request.get(`/area/list`)
}
export const getAllApi = () => {
    return request.get(`/area`)
}

export const addApi = (data) => {
    return request.post(`/area`, data)
}
export const showBackApi = (id) => {
    return request.get(`/area/${id}`)
}
export const updateApi = (data) => {
    return request.put(`/area`, data)
}
export const delApi = (ids) => {
    return request.delete(`/area?ids=${ids}`)
}